package org.stwy.pro.property;

import org.springframework.data.jpa.repository.Query;

import com.rap.common.persistence.IBaseDAO;

/**
 * 物业 DAO类
 */
/**
*版权信息 (c) RAP 保留所有权利.
*@author Rap.Codegen
*@Team RAP Team
*@Date 2015-4-4 17:05:42
*<p></p>
*
*@参与人：Rap.Codegen
*/
 
public interface PropertyDAO extends IBaseDAO<PropertyEntity, String> {
	
	@Query(" select max(a.theCode) from PropertyEntity a")
	Long getLastCode();
	//自定义查询JPQL
	//@Query("from PropertyEntity a where a.xxx = ?1 order by xxx")
	//List<PropertyEntity> findByXXX(String p1);

	PropertyEntity getByTheName(String propertyName);
	
	//属性名解析查询
	//PropertyEntity findByFieldName(String p1);
}
